Skip to content

Conversation

@jessehouwing
Copy link
Collaborator

@jessehouwing jessehouwing commented Nov 4, 2025

This pull request removes support for the legacy v4 build tasks from the repository. The changes focus on cleaning up configuration files and source code related to v4, including the removal of package management, build configuration, and implementation files.
tension version build task has been deleted.

This pull request introduces a new shared authentication helper package for v5 tasks, updates automation to focus on v5 task maintenance, and removes legacy v4 task files. The main goal is to centralize and modernize authentication logic for Azure DevOps extension tasks, streamline dependency updates, and clean up obsolete v4 code.

Key changes:

New Shared Authentication Utilities

  • Added a new BuildTasks/Common-Auth/v5 package containing CommonAuth.ts, which provides reusable authentication helpers for extension tasks, including functions to retrieve endpoint details and set up tfx CLI arguments for various Azure DevOps connection types. (BuildTasks/Common-Auth/v5/CommonAuth.ts, BuildTasks/Common-Auth/v5/package.json, BuildTasks/Common-Auth/v5/tsconfig.json) [1] [2] [3]

Automation and Dependency Update Focus

  • Updated .github/dependabot.yml to remove all v4 task directories from automated dependency updates and instead add v5 task directories (including the new Common-Auth/v5), ensuring future maintenance targets only supported code. [1] [2]

Documentation Improvements

  • Added a comprehensive .github/copilot-instructions.md to help contributors understand the architecture, workflows, conventions, and extension task patterns in the repository.

Legacy v4 Task Cleanup

  • Removed the BuildTasks/Common/v4/package.json, package-lock.json, and tsconfig.json files, fully deprecating the v4 Common utilities from the repository. [1] [2] [3]

- Created package.json for vsts-developer-tools.common-authv5 with dependencies on azure-pipelines-task-lib and azure-pipelines-tasks-azure-arm-rest.
- Added tsconfig.json to configure TypeScript compilation for CommonAuth.ts.
@jessehouwing
Copy link
Collaborator Author

@copilot don't forget to agg commonauth to the dependabot config

Copy link

Copilot AI commented Nov 9, 2025

@jessehouwing I've opened a new pull request, #1510, to work on those changes. Once the pull request is ready, I'll request review from you.

@jessehouwing
Copy link
Collaborator Author

jessehouwing commented Nov 9, 2025

@copilot This pull request currently doesn't build on the hosted windows agent:

npm error code EJSONPARSE
npm error path D:\a\1\s\BuildTasks\PublishExtension\v5/package.json
npm error JSON.parse Unexpected non-whitespace character after JSON at position 571 while parsing near "...ndencies": {}\r\n }\r\n}\r\n"
npm error JSON.parse Failed to parse JSON data.
npm error JSON.parse Note: package.json must be actual JSON, not just JavaScript.
npm error A complete log of this run can be found in: C:\npm\cache_logs\2025-11-09T19_06_22_741Z-debug-0.log

@jessehouwing jessehouwing changed the title Drop v4 to reduce size [WIP] Drop v4 to reduce size & refactor v5 to slim it down further. Nov 9, 2025
@jessehouwing jessehouwing requested a review from Copilot November 9, 2025 21:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request removes legacy v4 build task support from the Azure DevOps extension tasks repository, refactors authentication logic into a dedicated shared package, and streamlines the build configuration to focus exclusively on v5 tasks.

Key changes:

  • Extracted authentication helpers into a new Common-Auth/v5 shared package
  • Removed all v4 task implementations and configuration files
  • Updated build scripts and dependency management to target only v5 tasks

Reviewed Changes

Copilot reviewed 70 out of 99 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
BuildTasks/Common-Auth/v5/* New shared authentication package containing marketplace endpoint and tfx CLI argument helpers
BuildTasks/Common/v5/Common.ts Removed authentication functions (moved to Common-Auth) and replaced fs-extra with native fs/promises
BuildTasks/*/v4/* Deleted all v4 task implementations, configurations, and package files
BuildTasks/*/v5/*.ts Updated to import authentication functions from new Common-Auth package
package.json Removed v4 compilation and linting scripts; cleaned up deprecated type dependencies
.github/dependabot.yml Removed v4 task directories from automated dependency updates
test-*.cmd Updated test scripts to reference v5 task paths only
azure-pipelines.yml Removed v4 references from build cleanup steps
Files not reviewed (15)
  • BuildTasks/Common-Auth/v5/package-lock.json: Language not supported
  • BuildTasks/Common/v4/package-lock.json: Language not supported
  • BuildTasks/Common/v5/package-lock.json: Language not supported
  • BuildTasks/ExtensionVersion/v4/package-lock.json: Language not supported
  • BuildTasks/InstallExtension/v4/package-lock.json: Language not supported
  • BuildTasks/IsValidExtensionAgent/v4/package-lock.json: Language not supported
  • BuildTasks/PackageExtension/v4/package-lock.json: Language not supported
  • BuildTasks/PackageExtension/v5/package-lock.json: Language not supported
  • BuildTasks/PublishExtension/v4/package-lock.json: Language not supported
  • BuildTasks/PublishExtension/v5/package-lock.json: Language not supported
  • BuildTasks/PublishVSExtension/v4/package-lock.json: Language not supported
  • BuildTasks/ShareExtension/v4/package-lock.json: Language not supported
  • BuildTasks/TfxInstaller/v4/package-lock.json: Language not supported
  • BuildTasks/TfxInstaller/v5/package-lock.json: Language not supported
  • BuildTasks/UnpublishExtension/v4/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants